package com.example.userprovider.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TonySong
 * @date 2024/4/22 0022
 * @time 14:28
 */
@RestController
@Slf4j
public class UserController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/list")
    public String haha() {
        log.info("haha");
        return "端口号："+this.port+"haha";
    }
}
